<!--
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/3/14 13:46:24
 *-->
<template>
  <el-container>
    <el-header>
      用户实名认证信息详情
    </el-header>
    <el-main>
      <el-form label-width="200px" :inline="true" style="padding:5% 5% 0 5%">
        <el-form-item label="：">
          <span>{{formData.id}}</span>
        </el-form-item>
        <el-form-item label="用户id：">
          <span>{{formData.user_id}}</span>
        </el-form-item>
        <el-form-item label="用户姓名：">
          <span>{{formData.user_name}}</span>
        </el-form-item>
        <el-form-item label="身份证号码：">
          <span>{{formData.user_identity_num}}</span>
        </el-form-item>
        <el-form-item label="身份证正面照：">
          <span>{{formData.identity_photo_front}}</span>
        </el-form-item>
        <el-form-item label="身份证反面照：">
          <span>{{formData.identity_photo_back}}</span>
        </el-form-item>
        <el-form-item label="排序 值越大排序越靠前：">
          <span>{{formData.sort}}</span>
        </el-form-item>
        <el-form-item label="0 待审核 ， 1 审核通过， 2 审核未通过：">
          <span>{{formData.is_check}}</span>
        </el-form-item>
        <el-form-item label="0 未删除， 1 已删除：">
          <span>{{formData.is_del}}</span>
        </el-form-item>
        <el-form-item label="是否默认 0否 1是：">
          <span>{{formData.is_default}}</span>
        </el-form-item>
        <el-form-item label="添加时间：">
          <span>{{formData.add_time}}</span>
        </el-form-item>
      </el-form>
    </el-main>
  </el-container>
</template>
<style scoped>
body .app-container .el-container,
body .app-container .el-header,
body .app-container .el-main,
body .el-container,
body .el-header,
body .el-main {
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
</style>
<script>
import { Loading } from "element-ui";
import {
  jbr_user_authentication_infoInfo
} from '@/api/project/wmyh/project_wmyh_jbr_user_authentication_info'
export default {
  name: "a_wmyha_jbr_user_authentication_info_info",
  data() {
    return {
      infoLoading: false,
      formData:{
        id: 0, 
        user_id: 0, 
        user_name: '', 
        user_identity_num: '', 
        identity_photo_front: '', 
        identity_photo_back: '', 
        sort: 0, 
        is_check: 0, 
        is_del: 0, 
        is_default: 0, 
        add_time: '2020/8/11 10:52:34', 
      }
    };
  },
  activated() {
    var result = location.search.match(new RegExp("[\?\&]id=([^\&]+)", "i"));
    if(result != null || result.length > 0){
      this.onInfo(result[1]);
    }
  },
  methods: {
    onInfo(id){
      this.infoLoading=true;
      jbr_user_authentication_infoInfo({id:id}).then(r=>{
        this.formData.id = r.dataSingle.id, 
        this.formData.user_id = r.dataSingle.user_id, 
        this.formData.user_name = r.dataSingle.user_name, 
        this.formData.user_identity_num = r.dataSingle.user_identity_num, 
        this.formData.identity_photo_front = r.dataSingle.identity_photo_front, 
        this.formData.identity_photo_back = r.dataSingle.identity_photo_back, 
        this.formData.sort = r.dataSingle.sort, 
        this.formData.is_check = r.dataSingle.is_check, 
        this.formData.is_del = r.dataSingle.is_del, 
        this.formData.is_default = r.dataSingle.is_default, 
        this.formData.add_time = r.dataSingle.add_time, 
        this.infoLoading=false;
      }).catch(()=>{
        this.infoLoading=false;
      });
    }
  }
}
</script>
